﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AccountAdmin/AdminMaster.master" AutoEventWireup="true" CodeBehind="Details.aspx.cs" Inherits="PRJ_LDW_Eutoliso.AccountAdmin.Evento.Details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headTile" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="headScript" runat="server">
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>
        $(function () {
            //var date = $('#datepicker').datepicker({ dateFormat: 'dd-mm-yy' }).val();
            //$("#datepicker").datepicker();
            $("#datepicker2").datepicker();
            $("#<%= txtDate1.ClientID %>").datepicker({ dateFormat: "dd-mm-yy" }).val()
            $("#<%= txtDate2.ClientID %>").datepicker({ dateFormat: "dd-mm-yy" }).val()
        });
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body_pre_central" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body_central_first" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="body_central" runat="server">

    <!-- Start Box -->
    <div class="boxes-full">

        <div class="boxes-padding fullpadding">

            <!-- Start None Split Section -->
            <div class="splitnone">

                <div id="portfolio-container">


                    <!-- Start 4 column portfolio -->
                    <div class="element web">

                        <div class="col1">
                            <div class="wrapper_01">


                                <h3>
                                    <div class="wrapper_01">
                                        <li class="under_02"><a href="/AccountAdmin/Home.aspx" title="" class="active">Página Inicial</a></li>
                                        <li class="under_02"><a href="#">Anúncios</a></li>
                                        <li class="under_02"><a href="#">Meus Dados</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Evento/Categoria/Home.aspx" title="" class="active">Categoria</a></li>
                                    </div>
                                </h3>

                            </div>
                        </div>

                    </div>

                    <div class="element graphic">

                        <asp:Image ID="Image1" runat="server" />

                        <br />

                        <br />

                       

                    </div>

                    <div class="element logo">
                       <h2> Inserir Evento </h2>
       
                      
                                <br />
                        <asp:Label ID="Label5" runat="server" Text=""></asp:Label>

                        <br />


                        <br />
                        <br />
                      <table>
                            <tr>
                                <td>
                                  <h3>  <asp:Label ID="Label2" Width="109px" runat="server" Text="Nome" /></h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNome" runat="server" Width="285px" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                  <h3>  <asp:Label ID="Label1" runat="server" Text="Data de Início" /></h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDate1" runat="server" Width="84px" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                  <h3>  <asp:Label ID="Label4" runat="server" Text="Data do Fim" /></h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDate2" runat="server" Width="84px" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 100px">
                                  <h3>  <asp:Label ID="Label7" runat="server" Text="Categoria" /></h3>
                                </td>
                                <td class="auto-style1">
                                    <asp:DropDownList ID="ddlCategoria" runat="server" CssClass="contacttextform" Width="167px" DataSourceID="dsEventoCat" DataTextField="Nome" Height="32px" DataValueField="Nome" AppendDataBoundItems="True">
                                        <asp:ListItem Value="0">Selecione</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>

                        <%--    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>--%>
                                    <tr>
                                        <td>
                                        <h3>    <asp:Label ID="Label6" runat="server" Text="Estado" /></h3>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlEstado" runat="server" CssClass="contacttextform" DataSourceID="sqlEstado" DataTextField="Nome" DataValueField="Id" Height="32px" Width="167px" AppendDataBoundItems="True" AutoPostBack="True">
                                                <asp:ListItem Value="0">Selecione</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        <h3>    <asp:Label ID="Label3" runat="server" Text="Cidade" /></h3>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlCidade" runat="server" CssClass="contacttextform"  DataSourceID="sqlCidade" DataTextField="Nome" DataValueField="Nome" Height="32px" Width="167px" AppendDataBoundItems="True" EnableViewState="False">
                                                <asp:ListItem Value="0">Selecione</asp:ListItem>
                                            </asp:DropDownList>

                                        </td>
                                    </tr>
                       <%--         </ContentTemplate>
                            </asp:UpdatePanel>--%>
                            <tr>
                                <td style="width: 100px">
                                 <h3>   <asp:Label ID="Label8" runat="server" Text="Imagem" /></h3>
                                </td>
                                <td class="auto-style1">

                                    <asp:FileUpload ID="FileUploadControl" runat="server" CssClass="contacttextform" Width="285px"/>
                                   <%-- <asp:Button runat="server" ID="UploadButton" Text="Upload" OnClick="UploadButton_Click" />
                                    <br />
                                    <br />
                                   --%>

                                </td>
                            </tr>

                            <tr>
                                <td style="width: 100px">
                                <h3>    <asp:Label ID="Label9" runat="server" Text="Link Vídeo" /> </h3>
                                </td>
                                <td class="auto-style1">
                                    <asp:TextBox ID="txtxLinkVideo" runat="server" Width="285px" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td style="width: 100px">
                                <h3>    <asp:Label ID="Label10" runat="server" Text="Descrição" /> </h3>
                                </td>
                                <td class="auto-style1">
                                    <asp:TextBox ID="txtDescricao" runat="server" Height="127px" TextMode="MultiLine" Width="286px" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>

                        </table>
                        <br>
                        <br>
                        <br>

                       
                        <br>
                         <a href="Home.aspx" title="" class="smallsmoothrectange orangebutton">Mostrar Todos</a>
                        <br>
                         <br>
                        <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Text="Item atualizado com sucesso!" Visible="False"></asp:Label>
                         <asp:Label runat="server" ID="StatusLabel" Text="" />
                        <br>
                        <br>
                          <a href="Home.aspx">Mostrar todos os itens</a>
                                <asp:EntityDataSource ID="dsEventoCat" runat="server" ConnectionString="name=eutolisodbEntities1" DefaultContainerName="eutolisodbEntities1" EnableFlattening="False" EntitySetName="eventocategoria" Select="it.[Id], it.[Nome]">
                                </asp:EntityDataSource>
                                <asp:EntityDataSource ID="EntityDataSource2" runat="server" ConnectionString="name=eutolisodbEntities1" DefaultContainerName="eutolisodbEntities1" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" EntitySetName="cidade">
                                </asp:EntityDataSource>
                                <asp:SqlDataSource ID="sqlEstado" runat="server" ConnectionString="<%$ ConnectionStrings:eutolisodbConnectionString %>" SelectCommand="SELECT [Id], [Nome] FROM [estado]"></asp:SqlDataSource>
                                <asp:SqlDataSource ID="sqlCidade" runat="server" ConnectionString="<%$ ConnectionStrings:eutolisodbConnectionString %>" SelectCommand="SELECT [Id], [Nome] FROM [cidade] WHERE ([Estado] = @Estado)">
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="ddlEstado" Name="Estado" PropertyName="SelectedValue" Type="Int32" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:eutolisodbConnectionString %>" SelectCommand="SELECT [Id], [Nome] FROM [eventocategoria]"></asp:SqlDataSource>

                        <br>
                    </div>

                    <!-- End 4 column portfolio -->

                </div>

            </div>
            <!-- End None Split Section -->

        </div>

    </div>
    <!-- End Box -->
</asp:Content>
